package com.mxpio.erp.common.workshop.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.persistence.Transient;

import com.mxpio.erp.common.jpa.model.NoticeLine;

import com.mxpioframework.security.annotation.Dict;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

@Data
@EqualsAndHashCode(callSuper=false)
@Entity
@Table(name = "MB_ERP_WORKSHOP_PICKING_NOTICE_LINE")
@Schema(description="生产领料通知单行")
public class MoPickingNoticeLine extends NoticeLine {

	private static final long serialVersionUID = 1L;

	@Column(name = "MEMO_")
	@Schema(description = "备注")
	private String memo;

	@Column(name = "ITEM_PRICE_")
	@Schema(description = "物料价格")
	private BigDecimal itemPrice;


	@Column(name = "SUPPLEMENT_REASON_")
	@Schema(description = "补料原因")
	private String supplementReason;


	//@Column(name = "MATERIAL_BRAND_")
	@Transient
	@Schema(description = "材料牌号")
	private String materialBrand;


	@Transient
	@Schema(description = "材料类型")
	@Dict(dicCode = "ERP_TECH_MATERIAL_TYPE")
	private String materialType;


	@Transient
	@Schema(description = "密度（g/cm3）")
	private BigDecimal materialDensity;
	@Transient
	@Schema(description = "直径（mm）")
	private BigDecimal materialDiameter;
	@Transient
	@Schema(description = "壁厚（mm）")
	private BigDecimal materialThickness;


	@Transient
	@Schema(description = "下料长度")
	private BigDecimal makeLength;


	@Transient
	@Schema(description = "下料面积")
	private BigDecimal makeArea;

	@Transient
	@Schema(description = "可制数量")
	private BigDecimal makeNum;


}
